package paperless.information.notice;

import com.example.paperless.R;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.webkit.WebView.FindListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListView;
import android.widget.TextView;

public class NoticeFragment extends Fragment {
	
	ListView list;
	NoticeAdapter na;
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View v = inflater.inflate(R.layout.notice_fragment, container, false);
		
		list = (ListView)v.findViewById(R.id.listView1);
		na = new NoticeAdapter(getActivity());
		list.setAdapter(na);
		
		list.setOnItemClickListener(new OnItemClickListener() {

			@Override
			public void onItemClick(AdapterView<?> parent, View view, int position,long id) {
				na.toggle(position);
				
			}
		});

		return v;
	}

	
}
